﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.ThingsWeb.GoodsComments
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					Guid CommentsID=new Guid(strid);
					ShowInfo(CommentsID);
				}
			}
		}
		
	private void ShowInfo(Guid CommentsID)
	{
		Things.BLL.GoodsComments bll=new Things.BLL.GoodsComments();
		Things.Model.GoodsComments model=bll.GetModel(CommentsID);
		this.lblCommentsID.Text=model.CommentsID.ToString();
		this.lblGoodsPriceID.Text=model.GoodsPriceID.ToString();
		this.lblComments.Text=model.Comments;
		this.lblBuyerAccount.Text=model.BuyerAccount;
		this.lblCommentDate.Text=model.CommentDate.ToString();
		this.lblRate.Text=model.Rate.ToString();
		this.lblCommentTitle.Text=model.CommentTitle;

	}


    }
}
